package com.qf.controller;

import com.qf.entity.Doctor;
import com.qf.pojo.BaseResult;
import com.qf.serevice.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/medicine")
public class DoctorController {

    @Autowired
    DoctorService doctorService;

    //查询药房医生的个人信息
    @RequestMapping(value = "/findDoctorBydIdcard",method = RequestMethod.GET)
    public BaseResult findDoctorBydIdcard(@RequestParam("idCard") String idCard){
        BaseResult doctor1 = doctorService.findDoctorBydIdcard(idCard);
        return doctor1;
    }




}
